<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<head>
<base href="<c:url value='/'/>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>文件查看-下载</title>
    <link rel="stylesheet" href="resources/static/css/pintuer.css">
    <link rel="stylesheet" href="resources/static/css/admin.css">
    <script src="resources/static/js/jquery.js"></script>
    <script src="resources/static/js/pintuer.js"></script>
    <script type="text/javascript">
       function move(currPage,pageSize,fileid){
    	   //var pageSize=document.getElementById("pageSize").value;
    	   
    	   var url="article/listartdownuser?fileid="+fileid+"&currPage="+currPage;
    	   if(pageSize!=undefined){
    		   url+="&pageSize="+pageSize;
    	   }
    	   location.href=url;
       }
    
    </script>
</head>
<body>
<div class="panel admin-panel">
    <div class="padding border-bottom ">
        <p><strong>现代农业的发展趋势</strong></p>
        <span>作者：</span><span>张琳</span>
        <span class="margin-large-left">类型：</span><span>月报</span>
        <span class="margin-large-left">重点领域：</span><span>现代农业</span>
    </div>
    <div class="padding border-bottom">
        <button type="button" class="button border-yellow" onClick="window.location.href='article/listartbruser?fileid=${fileid}'">浏览</button>
        <button type="button" class="button border-yellow" onClick="window.location.href='viewjsp/article/ckdown.jsp'" style="color: #fff;border-color: #f90;background-color: #f90;"> 下载</button>
        <button type="button" class="button border-yellow" onClick="window.location.href='article/listartgreatuser?fileid=${fileid}'"> 点赞</button>
        <button type="button" class="button border-yellow" onClick="window.location.href='article/listartcomtuser?fileid=${fileid}'"> 评论</button>
    </div>
    <div class="panel-head"><strong class="icon-reorder"> 下载列表</strong></div>
    <table class="table table-hover text-center">
        <tr>
            <th width="">序号</th>
            <th width="">用户名</th>
            <th width="">真实姓名</th>
            <th width="">职务</th>
            <th width="">下载时间</th>
        </tr>
        <c:forEach items='${userList }' var="user">
         <tr>
           <td><c:out value='${user.userid }'/></td>
           <td>${user.username }</td>
           <td>${user.name }</td>
         <td>${user.job }</td>
         <td>${user.downtime }</td>
         </tr>
       </c:forEach>
        

        <tr>
            <td colspan="12"><div class="pagelist"> 
         <a href="javascript:move(${page.currPage-1 },${page.pageSize},${fileid})">上一页</a>
        <span class="current"><a href="javascript:move(1,${page.pageSize},${fileid})">1</a></span>
       <a href="javascript:move(2,${page.pageSize},${fileid})">2</a>
        <a href="javascript:move(3,${page.pageSize},${fileid})">3</a>
        <a href="javascript:move(${page.currPage+1 },${page.pageSize},${fileid})">下一页</a>
        <a href="javascript:move(${page.totalPage },${page.pageSize},${fileid})">尾页</a> </div></td>
        </tr>

    </table>
</div>
</body>
</html>